//Replacement for ASP.NET similar script.
//ASP.NET script works bad with ImsEnter.

ValidatorGetValueRecursive=function (control)
{
    if (typeof(control.value) == "string" && (control.type != "radio" || control.status == true)) {
        return control.value;
    }
    var i, val;
    for (i = 0; i<control.children.length; i++) {
        val = ValidatorGetValueRecursive(control.children[i]);
        if (val != null) return val;
    }
    return null;
}
